package com.hulk.dryad.web.api.vo.base;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * Date: 2019/3/19
 * Time: 19:14
 *
 * @author hulk
 */
@Data
public abstract class BaseVO implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "版本号", required = false)
    private String version ;
    @ApiModelProperty(value = "字符编码", required = false)
    private String charset ;
    @NotBlank(message = "请求流水号不可为空;")
    @Length(min = 16, max = 32, message = "请求流水号长度不正确，长度为16-32位;")
    @ApiModelProperty(value = "请求流水号", required = true)
    private String traceId ;

}
